home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / demos / video / creation.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  30KB  |  671 lines

  1. /*
  2.  * Copyright (C) 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. /*
  18.  * Generated by the ICS builderXcessory (BX).
  19.  *
  20.  *
  21.  * Builder Xcessory 3.0 FT.
  22.  *
  23.  */
  24.  
  25. /* external widget declarations */
  26. /* from chroma widget: */
  27. extern Widget UminTF;
  28. extern Widget UmaxTF;
  29. extern Widget VminTF;
  30. extern Widget VmaxTF;
  31. extern Widget ChromasharpTF;
  32. extern Widget UminScale;
  33. extern Widget UmaxScale;
  34. extern Widget VminScale;
  35. extern Widget VmaxScale;
  36. extern Widget ChromasharpScale;
  37. extern Widget ChromasetTB;
  38. extern Widget UrangelockTB;
  39. extern Widget VrangelockTB;
  40. /* from luma widget: */
  41. extern Widget YminTF;
  42. extern Widget YmaxTF;
  43. extern Widget LumasharpTF;
  44. extern Widget LumafgopTF;
  45. extern Widget YminScale;
  46. extern Widget YmaxScale;
  47. extern Widget LumasharpScale;
  48. extern Widget LumafgopScale;
  49. extern Widget LumasetTB;
  50. extern Widget YrangelockTB;
  51. /* from switch widget: */
  52. extern Widget ManualScale;
  53. extern Widget FuzzScale;
  54. extern Widget SwitchspeedScale;
  55. /* end external widget declarations */
  56. /* external variables */
  57. extern int ChromaPreA[5];
  58. extern int ChromaPreB[5];
  59. extern int ChromaPre1[5];
  60. extern int ChromaPre2[5];
  61. extern int ChromaPre3[5];
  62. extern int ChromaPre4[5];
  63. extern int LumaPreA[4];
  64. extern int LumaPreB[4];
  65. extern int LumaPre1[4];
  66. extern int LumaPre2[4];
  67. extern int LumaPre3[4];
  68. extern int LumaPre4[4];
  69. /* end external variables */
  70.  
  71. /*
  72.  * Callback procedure declarations
  73.  */
  74. extern void minmaxtorangeval();
  75. extern void rangevaltominmax();
  76. extern void getAllChromaVLValues();
  77. extern void getAllLumaVLValues();
  78. extern void uminScaleHandler();
  79. extern void umaxScaleHandler();
  80. extern void urangelockTBHandler();
  81. extern void vminScaleHandler();
  82. extern void vmaxScaleHandler();
  83. extern void vrangelockTBHandler();
  84. extern void chromaBBdestroyHandler();
  85. extern void chromasharpHandler();
  86. extern void chromasharpScaleHandler();
  87. extern void chromaDoPBHandler();
  88. extern void chromaAPBHandler();
  89. extern void chromaBPBHandler();
  90. extern void chroma1PBHandler();
  91. extern void chroma2PBHandler();
  92. extern void chroma3PBHandler();
  93. extern void chroma4PBHandler();
  94. extern void chromasetTBHandler();
  95. extern void yminScaleHandler();
  96. extern void ymaxScaleHandler();
  97. extern void yrangelockTBHandler();
  98. extern void lumaBBdestroyHandler();
  99. extern void lumasharpScaleHandler();
  100. extern void lumafgopScaleHandler();
  101. extern void lumaDoHandler();
  102. extern void lumaAPBHandler();
  103. extern void lumaBPBHandler();
  104. extern void luma1PBHandler();
  105. extern void luma2PBHandler();
  106. extern void luma3PBHandler();
  107. extern void luma4PBHandler();
  108. extern void lumasetTBHandler();
  109. extern void switchBBdestroyHandler();
  110. extern void leftrightswitchPBHandler();
  111. extern void elevatorhorizswitchPBHandler();
  112. extern void crossswitchPBHandler();
  113. extern void rectoutswitchPBHandler();
  114. extern void upperleftswitchPBHandler();
  115. extern void squaresswitchPBHandler();
  116. extern void tilesswitchPBHandler();
  117. extern void fadeswitchPBHandler();
  118. extern void automanualTBHandler();
  119. extern void switchspeedScaleHandler();
  120. extern void fuzzScaleHandler();
  121. extern void manualScaleHandler();
  122. extern void repeatScaleHandler();
  123. extern void util1PBHandler();
  124. extern void util2PBHandler();
  125. extern void helpPBHandler();
  126. extern void quitPBHandler();
  127. extern void option1PBHandler();
  128. extern void app1PBHandler();
  129. extern void app2PBHandler();
  130. extern void app3PBHandler();
  131. extern void app4PBHandler();
  132. extern void app5PBHandler();
  133. extern void app6PBHandler();
  134. extern void grabnsavePBHandler();
  135. extern void grabndispPBHandler();
  136. extern void vidovergfxPBHandler();
  137. extern void gfxovervidPBHandler();
  138. extern void fullscreenoutPBHandler();
  139.  
  140. /* XPM */
  141. static char * fadeswitch[] = {
  142. "48 48 2 1",
  143. "     c #9F9F9F9F9F9F",
  144. ".    c #0A0A0A0AC8C8",
  145. "                                                ",
  146. "                                                ",
  147. "                                                ",
  148. "                                                ",
  149. "                                                ",
  150. "                                                ",
  151. "                                                ",
  152. "       ..................................       ",
  153. "                                                ",
  154. "       ..................................       ",
  155. "                                                ",
  156. "       ..................................       ",
  157. "                                                ",
  158. "       ..................................       ",
  159. "                                                ",
  160. "       ..................................       ",
  161. "                                                ",
  162. "       ..................................       ",
  163. "                                                ",
  164. "       ..................................       ",
  165. "                                                ",
  166. "       ..................................       ",
  167. "                                                ",
  168. "       ..................................       ",
  169. "                                                ",
  170. "       ..................................       ",
  171. "                                                ",
  172. "       ..................................       ",
  173. "                                                ",
  174. "       ..................................       ",
  175. "                                                ",
  176. "       ..................................       ",
  177. "                                                ",
  178. "       ..................................       ",
  179. "                                                ",
  180. "       ..................................       ",
  181. "                                                ",
  182. "       ..................................       ",
  183. "                                                ",
  184. "       ..................................       ",
  185. "                                                ",
  186. "                                                ",
  187. "                                                ",
  188. "                                                ",
  189. "                                                ",
  190. "                                                ",
  191. "                                                ",
  192. "                                                "};
  193. /* XPM */
  194. static char * rectoutswitch[] = {
  195. "48 48 2 1",
  196. "     c #9F9F9F9F9F9F",
  197. ".    c #0A0A0A0AC8C8",
  198. "                                                ",
  199. "                                                ",
  200. "                                                ",
  201. "                                                ",
  202. "                                                ",
  203. "                                                ",
  204. "                                                ",
  205. "                                                ",
  206. "                                                ",
  207. "                                                ",
  208. "                                                ",
  209. "                                                ",
  210. "                                                ",
  211. "                                                ",
  212. "                                                ",
  213. "                                                ",
  214. "                                                ",
  215. "                .................               ",
  216. "                .................               ",
  217. "                .................               ",
  218. "                .................               ",
  219. "                .................               ",
  220. "                .................               ",
  221. "                .................               ",
  222. "                .................               ",
  223. "                .................               ",
  224. "                .................               ",
  225. "                .................               ",
  226. "                .................               ",
  227. "                .................               ",
  228. "                .................               ",
  229. "                                                ",
  230. "                                                ",
  231. "                                                ",
  232. "                                                ",
  233. "                                                ",
  234. "                                                ",
  235. "                                                ",
  236. "                                                ",
  237. "                                                ",
  238. "                                                ",
  239. "                                                ",
  240. "                                                ",
  241. "                                                ",
  242. "                                                ",
  243. "                                                ",
  244. "                                                ",
  245. "                                                "};
  246. /* XPM */
  247. static char * squaresswitch[] = {
  248. "48 48 2 1",
  249. "     c #9F9F9F9F9F9F",
  250. ".    c #0A0A0A0AC8C8",
  251. "                                                ",
  252. "                                                ",
  253. "                                                ",
  254. "                                                ",
  255. "                                                ",
  256. "                                                ",
  257. "                                                ",
  258. "       .......  .......  .......  .......       ",
  259. "       .......  .......  .......  .......       ",
  260. "       .......  .......  .......  .......       ",
  261. "       .......  .......  .......  .......       ",
  262. "       .......  .......  .......  .......       ",
  263. "       .......  .......  .......  .......       ",
  264. "       .......  .......  .......  .......       ",
  265. "                                                ",
  266. "                                                ",
  267. "       .......  .......  .......  .......       ",
  268. "       .......  .......  .......  .......       ",
  269. "       .......  .......  .......  .......       ",
  270. "       .......  .......  .......  .......       ",
  271. "       .......  .......  .......  .......       ",
  272. "       .......  .......  .......  .......       ",
  273. "       .......  .......  .......  .......       ",
  274. "                                                ",
  275. "                                                ",
  276. "       .......  .......  .......  .......       ",
  277. "       .......  .......  .......  .......       ",
  278. "       .......  .......  .......  .......       ",
  279. "       .......  .......  .......  .......       ",
  280. "       .......  .......  .......  .......       ",
  281. "       .......  .......  .......  .......       ",
  282. "       .......  .......  .......  .......       ",
  283. "                                                ",
  284. "                                                ",
  285. "       .......  .......  .......  .......       ",
  286. "       .......  .......  .......  .......       ",
  287. "       .......  .......  .......  .......       ",
  288. "       .......  .......  .......  .......       ",
  289. "       .......  .......  .......  .......       ",
  290. "       .......  .......  .......  .......       ",
  291. "       .......  .......  .......  .......       ",
  292. "                                                ",
  293. "                                                ",
  294. "                                                ",
  295. "                                                ",
  296. "                                                ",
  297. "                                                ",
  298. "                                                "};
  299. /* XPM */
  300. static char * crossswitch[] = {
  301. "48 48 2 1",
  302. "     c #0A0A0A0AC8C8",
  303. ".    c #9F9F9F9F9F9F",
  304. "                    ........                    ",
  305. "                    ........                    ",
  306. "                    ........                    ",
  307. "                    ........                    ",
  308. "                    ........                    ",
  309. "                    ........                    ",
  310. "                    ........                    ",
  311. "                    ........                    ",
  312. "                    ........                    ",
  313. "                    ........                    ",
  314. "                    ........                    ",
  315. "                    ........                    ",
  316. "                    ........                    ",
  317. "                    ........                    ",
  318. "                    ........                    ",
  319. "                    ........                    ",
  320. "                    ........                    ",
  321. "                    ........                    ",
  322. "                    ........                    ",
  323. "                    ........                    ",
  324. "................................................",
  325. "................................................",
  326. "................................................",
  327. "................................................",
  328. "................................................",
  329. "................................................",
  330. "................................................",
  331. "................................................",
  332. "                    ........                    ",
  333. "                    ........                    ",
  334. "                    ........                    ",
  335. "                    ........                    ",
  336. "                    ........                    ",
  337. "                    ........                    ",
  338. "                    ........                    ",
  339. "                    ........                    ",
  340. "                    ........                    ",
  341. "                    ........                    ",
  342. "                    ........                    ",
  343. "                    ........                    ",
  344. "                    ........                    ",
  345. "                    ........                    ",
  346. "                    ........                    ",
  347. "                    ........                    ",
  348. "                    ........                    ",
  349. "                    ........                    ",
  350. "                    ........                    ",
  351. "                    ........                    "};
  352. /* XPM */
  353. static char * horizlouverswitch[] = {
  354. "48 48 2 1",
  355. "     c #9F9F9F9F9F9F",
  356. ".    c #0A0A0A0AC8C8",
  357. "                                                ",
  358. "                                                ",
  359. "                                                ",
  360. "                                                ",
  361. "                                                ",
  362. "                                                ",
  363. "                                                ",
  364. "     ......................................     ",
  365. "     ......................................     ",
  366. "     ......................................     ",
  367. "     ......................................     ",
  368. "                                                ",
  369. "                                                ",
  370. "                                                ",
  371. "                                                ",
  372. "     ......................................     ",
  373. "     ......................................     ",
  374. "     ......................................     ",
  375. "     ......................................     ",
  376. "                                                ",
  377. "                                                ",
  378. "                                                ",
  379. "                                                ",
  380. "     ......................................     ",
  381. "     ......................................     ",
  382. "     ......................................     ",
  383. "     ......................................     ",
  384. "                                                ",
  385. "                                                ",
  386. "                                                ",
  387. "                                                ",
  388. "     ......................................     ",
  389. "     ......................................     ",
  390. "     ......................................     ",
  391. "     ......................................     ",
  392. "                                                ",
  393. "                                                ",
  394. "                                                ",
  395. "                                                ",
  396. "                                                ",
  397. "                                                ",
  398. "                                                ",
  399. "                                                ",
  400. "                                                ",
  401. "                                                ",
  402. "                                                ",
  403. "                                                ",
  404. "                                                "};
  405. /* XPM */
  406. static char * leftrightswitch[] = {
  407. "48 48 2 1",
  408. "     c #9F9F9F9F9F9F",
  409. ".    c #0A0A0A0ADCDC",
  410. "                                                ",
  411. "                                                ",
  412. "                                                ",
  413. "   ......................                       ",
  414. "   ......................                       ",
  415. "   ......................                       ",
  416. "   ......................                       ",
  417. "   ......................                       ",
  418. "   ......................                       ",
  419. "   ......................                       ",
  420. "   ......................                       ",
  421. "   ......................                       ",
  422. "   ......................                       ",
  423. "   ......................                       ",
  424. "   ......................                       ",
  425. "   ......................                       ",
  426. "   ......................                       ",
  427. "   ......................                       ",
  428. "   ......................                       ",
  429. "   ......................                       ",
  430. "   ......................                       ",
  431. "   ......................                       ",
  432. "   ......................                       ",
  433. "   ......................                       ",
  434. "   ......................                       ",
  435. "   ......................                       ",
  436. "   ......................                       ",
  437. "   ......................                       ",
  438. "   ......................                       ",
  439. "   ......................                       ",
  440. "   ......................                       ",
  441. "   ......................                       ",
  442. "   ......................                       ",
  443. "   ......................                       ",
  444. "   ......................                       ",
  445. "   ......................                       ",
  446. "   ......................                       ",
  447. "   ......................                       ",
  448. "   ......................                       ",
  449. "   ......................                       ",
  450. "   ......................                       ",
  451. "   ......................                       ",
  452. "   ......................                       ",
  453. "   ......................                       ",
  454. "   ......................                       ",
  455. "                                                ",
  456. "                                                ",
  457. "                                                "};
  458. /* XPM */
  459. static char * tilesswitch[] = {
  460. "48 48 2 1",
  461. "     c #9F9F9F9F9F9F",
  462. ".    c #0A0A0A0AC8C8",
  463. "                                                ",
  464. "                                                ",
  465. "                                                ",
  466. "                                                ",
  467. "                                                ",
  468. "                                                ",
  469. "                                                ",
  470. "                                                ",
  471. "                 ...                            ",
  472. "                 ...               ...          ",
  473. "            ...  ...               ...          ",
  474. "            ...  ...               ...          ",
  475. "            ...                    ...          ",
  476. "            ...        ...                      ",
  477. "                       ...                      ",
  478. "                       ...                      ",
  479. "              ...      ...                      ",
  480. "              ...                               ",
  481. "              ...                               ",
  482. "              ...              ...              ",
  483. "                               ...  ...         ",
  484. "                               ...  ...         ",
  485. "          ...                  ...  ...         ",
  486. "          ...     ...               ...         ",
  487. "          ...     ...      ...                  ",
  488. "          ...     ...      ...                  ",
  489. "                  ...      ...                  ",
  490. "                           ...                  ",
  491. "                                                ",
  492. "                                                ",
  493. "                          ...                   ",
  494. "            ...           ...   ...             ",
  495. "            ...           ...   ...             ",
  496. "            ...  ...      ...   ...             ",
  497. "            ...  ...            ...             ",
  498. "                 ...                            ",
  499. "                 ...                 ...        ",
  500. "                                     ...        ",
  501. "                                     ...        ",
  502. "                                     ...        ",
  503. "                                                ",
  504. "                                                ",
  505. "                                                ",
  506. "                                                ",
  507. "                                                ",
  508. "                                                ",
  509. "                                                ",
  510. "                                                "};
  511. /* XPM */
  512. static char * upperleftswitch[] = {
  513. "48 48 2 1",
  514. "     c #9F9F9F9F9F9F",
  515. ".    c #0A0A0A0AC8C8",
  516. "                                                ",
  517. "                                                ",
  518. "                                                ",
  519. "                                                ",
  520. "                                                ",
  521. "                                                ",
  522. "                                                ",
  523. "       .............                            ",
  524. "       .............                            ",
  525. "       .............                            ",
  526. "       .............                            ",
  527. "       .............                            ",
  528. "       .............                            ",
  529. "       .............                            ",
  530. "       .............                            ",
  531. "       .............                            ",
  532. "       .............                            ",
  533. "       .............                            ",
  534. "       .............                            ",
  535. "       .............                            ",
  536. "                                                ",
  537. "                                                ",
  538. "                                                ",
  539. "                                                ",
  540. "                                                ",
  541. "                                                ",
  542. "                                                ",
  543. "                                                ",
  544. "                                                ",
  545. "                                                ",
  546. "                                                ",
  547. "                                                ",
  548. "                                                ",
  549. "                                                ",
  550. "                                                ",
  551. "                                                ",
  552. "                                                ",
  553. "                                                ",
  554. "                                                ",
  555. "                                                ",
  556. "                                                ",
  557. "                                                ",
  558. "                                                ",
  559. "                                                ",
  560. "                                                ",
  561. "                                                ",
  562. "                                                ",
  563. "                                                "};
  564. /* XPM */
  565. static char * elevatorhorizswitch[] = {
  566. "48 48 2 1",
  567. "     c #0A0A0A0AC8C8",
  568. ".    c #9F9F9F9F9F9F",
  569. "                                                ",
  570. "                                                ",
  571. "                                                ",
  572. "                                                ",
  573. "                                                ",
  574. "                                                ",
  575. "                                                ",
  576. "                                                ",
  577. "                                                ",
  578. "                                                ",
  579. "                                                ",
  580. "                                                ",
  581. "                                                ",
  582. "                                                ",
  583. "                                                ",
  584. "                                                ",
  585. "                                                ",
  586. "                                                ",
  587. "                                                ",
  588. "                                                ",
  589. "................................................",
  590. "................................................",
  591. "................................................",
  592. "................................................",
  593. "................................................",
  594. "................................................",
  595. "................................................",
  596. "................................................",
  597. "                                                ",
  598. "                                                ",
  599. "                                                ",
  600. "                                                ",
  601. "                                                ",
  602. "                                                ",
  603. "                                                ",
  604. "                                                ",
  605. "                                                ",
  606. "                                                ",
  607. "                                                ",
  608. "                                                ",
  609. "                                                ",
  610. "                                                ",
  611. "                                                ",
  612. "                                                ",
  613. "                                                ",
  614. "                                                ",
  615. "                                                ",
  616. "                                                "};
  617. /* XPM */
  618. static char * lrdiag1switch[] = {
  619. "48 48 2 1",
  620. "     c #9F9F9F9F9F9F",
  621. ".    c #0A0A0A0ADCDC",
  622. "                                                ",
  623. "                                                ",
  624. "                                                ",
  625. "   ..........................................   ",
  626. "   .........................................    ",
  627. "   ........................................     ",
  628. "   .......................................      ",
  629. "   ......................................       ",
  630. "   .....................................        ",
  631. "   ....................................         ",
  632. "   ...................................          ",
  633. "   ..................................           ",
  634. "   .................................            ",
  635. "   ................................             ",
  636. "   ...............................              ",
  637. "   ..............................               ",
  638. "   .............................                ",
  639. "   ............................                 ",
  640. "   ...........................                  ",
  641. "   ..........................                   ",
  642. "   .........................                    ",
  643. "   ........................                     ",
  644. "   .......................                      ",
  645. "   ......................                       ",
  646. "   .....................                        ",
  647. "   ....................                         ",
  648. "   ...................                          ",
  649. "   ..................                           ",
  650. "   .................                            ",
  651. "   ................                             ",
  652. "   ...............                              ",
  653. "   ..............                               ",
  654. "   .............                                ",
  655. "   ............                                 ",
  656. "   ...........                                  ",
  657. "   ..........                                   ",
  658. "   .........                                    ",
  659. "   ........                                     ",
  660. "   .......                                      ",
  661. "   ......                                       ",
  662. "   .....                                        ",
  663. "   ....                                         ",
  664. "   ...                                          ",
  665. "   ..                                           ",
  666. "   .                                            ",
  667. "                                                ",
  668. "                                                ",
  669. "                                                "};
  670.  
  671.